﻿using System.Collections.Generic;
using System.Threading.Tasks;
using yt_.netcore3._1_webapi_les_jackson.Models;

namespace yt_.netcore3._1_webapi_les_jackson.Data
{
    public interface ICommanderRepo
    {
        bool SaveChanges();
        IEnumerable<Command> GetAllCommands();
        Task<Command> GetCommandById(int id);

        Task CreateCommand(Command cmd);
        void UpdateCommand(Command cmd);

        void DeleteCommand(Command cmd);
    }
}